package day1217;

public class Test1 {
    public static void main(String[] args) {
        double firstTicket=800;//输入头等舱机票的价格 800
        double normalTicket=740;//输入经济舱机票的价格 740
        int month=12;
        String seat="经济舱";
        if(month==1  ||  month==11 || month==12){//month是否处于  11  12   1
            if("头等舱".equals(seat)){
                System.out.println(firstTicket*0.9);
            }else{
                System.out.println(normalTicket*0.85);
            }
        }else{
            if(seat.equals("头等舱")){
                System.out.println(firstTicket);
            }else{
                System.out.println(normalTicket);
            }
        }
    }
}
